Skip to content

Conversation

@huonw
Copy link
Contributor

@huonw huonw commented Dec 15, 2013

See commits for details.

raw}::copy_memory.

Slices carry their length with them, so we can just use that
information.
These are less useful versions of the comparison operators and TotalOrd
trait.
This can easily be written as `(*v.unsafe_ref(i)).clone()`, or just
`*v.unsafe_ref(i)` for primitive types like `i32` (the common case).
bors added a commit that referenced this pull request Dec 15, 2013
@bors bors closed this Dec 15, 2013
cadencemarseille added a commit to cadencemarseille/rust-pcre that referenced this pull request Dec 16, 2013
See:
* rust-lang/rust#10984 - Some general clean-up of std::vec::raw
* rust-lang/rust@164f7a2 - std::vec: convert to(_mut)_ptr to as_... methods on &[] and &mut [].
@huonw huonw deleted the clean-raw branch February 25, 2014 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants